<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Taskflow Handbook</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="https://taskflow.github.io/">Taskflow</a>
   &#160;<span id="projectnumber">3.0.0-Master-Branch</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classtf_1_1Task.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classtf_1_1Task-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">tf::Task Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>handle to a node in a task dependency graph  
 <a href="classtf_1_1Task.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="task_8hpp_source.html">task.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5ed7ba63e8eeaa0f21fe08c80aa474ba"><td class="memItemLeft" align="right" valign="top"><a id="a5ed7ba63e8eeaa0f21fe08c80aa474ba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a5ed7ba63e8eeaa0f21fe08c80aa474ba">Task</a> ()=default</td></tr>
<tr class="memdesc:a5ed7ba63e8eeaa0f21fe08c80aa474ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructs an empty task <br /></td></tr>
<tr class="separator:a5ed7ba63e8eeaa0f21fe08c80aa474ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53deffe60d7c758df4265aeb81063928"><td class="memItemLeft" align="right" valign="top"><a id="a53deffe60d7c758df4265aeb81063928"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a53deffe60d7c758df4265aeb81063928">Task</a> (const <a class="el" href="classtf_1_1Task.html">Task</a> &amp;other)</td></tr>
<tr class="memdesc:a53deffe60d7c758df4265aeb81063928"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructs the task with the copy of the other task <br /></td></tr>
<tr class="separator:a53deffe60d7c758df4265aeb81063928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebdcc47e47a119f261daab673a971458"><td class="memItemLeft" align="right" valign="top"><a id="aebdcc47e47a119f261daab673a971458"></a>
<a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#aebdcc47e47a119f261daab673a971458">operator=</a> (const <a class="el" href="classtf_1_1Task.html">Task</a> &amp;)</td></tr>
<tr class="memdesc:aebdcc47e47a119f261daab673a971458"><td class="mdescLeft">&#160;</td><td class="mdescRight">replaces the contents with a copy of the other task <br /></td></tr>
<tr class="separator:aebdcc47e47a119f261daab673a971458"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b0e3d6a1985a353626c15970c51c820"><td class="memItemLeft" align="right" valign="top"><a id="a4b0e3d6a1985a353626c15970c51c820"></a>
<a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a4b0e3d6a1985a353626c15970c51c820">operator=</a> (<a class="elRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/types/nullptr_t.html">std::nullptr_t</a>)</td></tr>
<tr class="memdesc:a4b0e3d6a1985a353626c15970c51c820"><td class="mdescLeft">&#160;</td><td class="mdescRight">replaces the contents with a null pointer <br /></td></tr>
<tr class="separator:a4b0e3d6a1985a353626c15970c51c820"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad87bb498b0a4eae0c375bc59b66dbba8"><td class="memItemLeft" align="right" valign="top"><a id="ad87bb498b0a4eae0c375bc59b66dbba8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#ad87bb498b0a4eae0c375bc59b66dbba8">operator==</a> (const <a class="el" href="classtf_1_1Task.html">Task</a> &amp;rhs) const</td></tr>
<tr class="memdesc:ad87bb498b0a4eae0c375bc59b66dbba8"><td class="mdescLeft">&#160;</td><td class="mdescRight">compares if two tasks are associated with the same graph node <br /></td></tr>
<tr class="separator:ad87bb498b0a4eae0c375bc59b66dbba8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4e13636e3a494297b30c2b2e483f095"><td class="memItemLeft" align="right" valign="top"><a id="af4e13636e3a494297b30c2b2e483f095"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#af4e13636e3a494297b30c2b2e483f095">operator!=</a> (const <a class="el" href="classtf_1_1Task.html">Task</a> &amp;rhs) const</td></tr>
<tr class="memdesc:af4e13636e3a494297b30c2b2e483f095"><td class="mdescLeft">&#160;</td><td class="mdescRight">compares if two tasks are not associated with the same graph node <br /></td></tr>
<tr class="separator:af4e13636e3a494297b30c2b2e483f095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08ada0425b490997b6ff7f310107e5e3"><td class="memItemLeft" align="right" valign="top"><a id="a08ada0425b490997b6ff7f310107e5e3"></a>
const <a class="elRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a08ada0425b490997b6ff7f310107e5e3">name</a> () const</td></tr>
<tr class="memdesc:a08ada0425b490997b6ff7f310107e5e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries the name of the task <br /></td></tr>
<tr class="separator:a08ada0425b490997b6ff7f310107e5e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a0afc89e8a6a416c511e74d82df135d"><td class="memItemLeft" align="right" valign="top"><a id="a1a0afc89e8a6a416c511e74d82df135d"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a1a0afc89e8a6a416c511e74d82df135d">num_successors</a> () const</td></tr>
<tr class="memdesc:a1a0afc89e8a6a416c511e74d82df135d"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries the number of successors of the task <br /></td></tr>
<tr class="separator:a1a0afc89e8a6a416c511e74d82df135d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a974dc1d738b62b829ad261beeafbd67c"><td class="memItemLeft" align="right" valign="top"><a id="a974dc1d738b62b829ad261beeafbd67c"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a974dc1d738b62b829ad261beeafbd67c">num_dependents</a> () const</td></tr>
<tr class="memdesc:a974dc1d738b62b829ad261beeafbd67c"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries the number of predecessors of the task <br /></td></tr>
<tr class="separator:a974dc1d738b62b829ad261beeafbd67c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad49a92e8858c3c298bed0215e341b66b"><td class="memItemLeft" align="right" valign="top"><a id="ad49a92e8858c3c298bed0215e341b66b"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#ad49a92e8858c3c298bed0215e341b66b">num_strong_dependents</a> () const</td></tr>
<tr class="memdesc:ad49a92e8858c3c298bed0215e341b66b"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries the number of strong dependents of the task <br /></td></tr>
<tr class="separator:ad49a92e8858c3c298bed0215e341b66b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3bf886291af7f39957d43d17083fe07"><td class="memItemLeft" align="right" valign="top"><a id="af3bf886291af7f39957d43d17083fe07"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#af3bf886291af7f39957d43d17083fe07">num_weak_dependents</a> () const</td></tr>
<tr class="memdesc:af3bf886291af7f39957d43d17083fe07"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries the number of weak dependents of the task <br /></td></tr>
<tr class="separator:af3bf886291af7f39957d43d17083fe07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9057ecd0f3833b717480e914f8568f02"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a9057ecd0f3833b717480e914f8568f02">name</a> (const <a class="elRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;name)</td></tr>
<tr class="memdesc:a9057ecd0f3833b717480e914f8568f02"><td class="mdescLeft">&#160;</td><td class="mdescRight">assigns a name to the task  <a href="#a9057ecd0f3833b717480e914f8568f02">More...</a><br /></td></tr>
<tr class="separator:a9057ecd0f3833b717480e914f8568f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f6f4cec42d016e5eb89390f362ffe99"><td class="memTemplParams" colspan="2">template&lt;typename C &gt; </td></tr>
<tr class="memitem:a2f6f4cec42d016e5eb89390f362ffe99"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a2f6f4cec42d016e5eb89390f362ffe99">work</a> (C &amp;&amp;callable)</td></tr>
<tr class="memdesc:a2f6f4cec42d016e5eb89390f362ffe99"><td class="mdescLeft">&#160;</td><td class="mdescRight">assigns a callable  <a href="#a2f6f4cec42d016e5eb89390f362ffe99">More...</a><br /></td></tr>
<tr class="separator:a2f6f4cec42d016e5eb89390f362ffe99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5278492a4d43a191b321eee60e7d629"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#ac5278492a4d43a191b321eee60e7d629">composed_of</a> (<a class="el" href="classtf_1_1Taskflow.html">Taskflow</a> &amp;taskflow)</td></tr>
<tr class="memdesc:ac5278492a4d43a191b321eee60e7d629"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a module task from a taskflow  <a href="#ac5278492a4d43a191b321eee60e7d629">More...</a><br /></td></tr>
<tr class="separator:ac5278492a4d43a191b321eee60e7d629"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c78c453295a553c1c016e4062da8588"><td class="memTemplParams" colspan="2">template&lt;typename... Ts&gt; </td></tr>
<tr class="memitem:a8c78c453295a553c1c016e4062da8588"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a8c78c453295a553c1c016e4062da8588">precede</a> (Ts &amp;&amp;... tasks)</td></tr>
<tr class="memdesc:a8c78c453295a553c1c016e4062da8588"><td class="mdescLeft">&#160;</td><td class="mdescRight">adds precedence links from this to other tasks  <a href="#a8c78c453295a553c1c016e4062da8588">More...</a><br /></td></tr>
<tr class="separator:a8c78c453295a553c1c016e4062da8588"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a331b1b726555072e7c7d10941257f664"><td class="memTemplParams" colspan="2">template&lt;typename... Ts&gt; </td></tr>
<tr class="memitem:a331b1b726555072e7c7d10941257f664"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classtf_1_1Task.html">Task</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a331b1b726555072e7c7d10941257f664">succeed</a> (Ts &amp;&amp;... tasks)</td></tr>
<tr class="memdesc:a331b1b726555072e7c7d10941257f664"><td class="mdescLeft">&#160;</td><td class="mdescRight">adds precedence links from other tasks to this  <a href="#a331b1b726555072e7c7d10941257f664">More...</a><br /></td></tr>
<tr class="separator:a331b1b726555072e7c7d10941257f664"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a302f51ed717d0a4e99edc50f92a571f3"><td class="memItemLeft" align="right" valign="top"><a id="a302f51ed717d0a4e99edc50f92a571f3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a302f51ed717d0a4e99edc50f92a571f3">reset</a> ()</td></tr>
<tr class="memdesc:a302f51ed717d0a4e99edc50f92a571f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">resets the task handle to null <br /></td></tr>
<tr class="separator:a302f51ed717d0a4e99edc50f92a571f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec3ab712e12137542b7e4bc311ee9f20"><td class="memItemLeft" align="right" valign="top"><a id="aec3ab712e12137542b7e4bc311ee9f20"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#aec3ab712e12137542b7e4bc311ee9f20">reset_work</a> ()</td></tr>
<tr class="memdesc:aec3ab712e12137542b7e4bc311ee9f20"><td class="mdescLeft">&#160;</td><td class="mdescRight">resets the associated work to a placeholder <br /></td></tr>
<tr class="separator:aec3ab712e12137542b7e4bc311ee9f20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8149edcf9ec2bfac18dd171f7a55ce06"><td class="memItemLeft" align="right" valign="top"><a id="a8149edcf9ec2bfac18dd171f7a55ce06"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a8149edcf9ec2bfac18dd171f7a55ce06">empty</a> () const</td></tr>
<tr class="memdesc:a8149edcf9ec2bfac18dd171f7a55ce06"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries if the task handle points to a task node <br /></td></tr>
<tr class="separator:a8149edcf9ec2bfac18dd171f7a55ce06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc4ecb89dd4e4645b3ec3fb7c1bb0ec5"><td class="memItemLeft" align="right" valign="top"><a id="afc4ecb89dd4e4645b3ec3fb7c1bb0ec5"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#afc4ecb89dd4e4645b3ec3fb7c1bb0ec5">has_work</a> () const</td></tr>
<tr class="memdesc:afc4ecb89dd4e4645b3ec3fb7c1bb0ec5"><td class="mdescLeft">&#160;</td><td class="mdescRight">queries if the task has a work assigned <br /></td></tr>
<tr class="separator:afc4ecb89dd4e4645b3ec3fb7c1bb0ec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff13a503d4a3c994eb08cb6f22e1b427"><td class="memTemplParams" colspan="2"><a id="aff13a503d4a3c994eb08cb6f22e1b427"></a>
template&lt;typename V &gt; </td></tr>
<tr class="memitem:aff13a503d4a3c994eb08cb6f22e1b427"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#aff13a503d4a3c994eb08cb6f22e1b427">for_each_successor</a> (V &amp;&amp;visitor) const</td></tr>
<tr class="memdesc:aff13a503d4a3c994eb08cb6f22e1b427"><td class="mdescLeft">&#160;</td><td class="mdescRight">applies an visitor callable to each successor of the task <br /></td></tr>
<tr class="separator:aff13a503d4a3c994eb08cb6f22e1b427"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bf68937662bf291637e4a763476b2e4"><td class="memTemplParams" colspan="2"><a id="a3bf68937662bf291637e4a763476b2e4"></a>
template&lt;typename V &gt; </td></tr>
<tr class="memitem:a3bf68937662bf291637e4a763476b2e4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a3bf68937662bf291637e4a763476b2e4">for_each_dependent</a> (V &amp;&amp;visitor) const</td></tr>
<tr class="memdesc:a3bf68937662bf291637e4a763476b2e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">applies an visitor callable to each dependents of the task <br /></td></tr>
<tr class="separator:a3bf68937662bf291637e4a763476b2e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c9301f2a330cc23ee18e8f61688141f"><td class="memItemLeft" align="right" valign="top"><a id="a1c9301f2a330cc23ee18e8f61688141f"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#a1c9301f2a330cc23ee18e8f61688141f">hash_value</a> () const</td></tr>
<tr class="memdesc:a1c9301f2a330cc23ee18e8f61688141f"><td class="mdescLeft">&#160;</td><td class="mdescRight">obtains a hash value of the underlying node <br /></td></tr>
<tr class="separator:a1c9301f2a330cc23ee18e8f61688141f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2df95e6c8c5870c033d692e88af0bc2"><td class="memItemLeft" align="right" valign="top"><a id="af2df95e6c8c5870c033d692e88af0bc2"></a>
<a class="el" href="task_8hpp.html#a0681fa0518bdd3e3d198e1b1b744c06f">TaskType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#af2df95e6c8c5870c033d692e88af0bc2">type</a> () const</td></tr>
<tr class="memdesc:af2df95e6c8c5870c033d692e88af0bc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the task type <br /></td></tr>
<tr class="separator:af2df95e6c8c5870c033d692e88af0bc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf9e6abcb9beb1e42e43e61761bba92b"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:acf9e6abcb9beb1e42e43e61761bba92b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classtf_1_1Task.html#acf9e6abcb9beb1e42e43e61761bba92b">dump</a> (T &amp;ostream) const</td></tr>
<tr class="memdesc:acf9e6abcb9beb1e42e43e61761bba92b"><td class="mdescLeft">&#160;</td><td class="mdescRight">dumps the task through an output stream  <a href="#acf9e6abcb9beb1e42e43e61761bba92b">More...</a><br /></td></tr>
<tr class="separator:acf9e6abcb9beb1e42e43e61761bba92b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a61184f9bd9c801d0a5eccecfdbddc641"><td class="memItemLeft" align="right" valign="top"><a id="a61184f9bd9c801d0a5eccecfdbddc641"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>FlowBuilder</b></td></tr>
<tr class="separator:a61184f9bd9c801d0a5eccecfdbddc641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af043dd6f6a359602805d9c7dd7539cca"><td class="memItemLeft" align="right" valign="top"><a id="af043dd6f6a359602805d9c7dd7539cca"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Taskflow</b></td></tr>
<tr class="separator:af043dd6f6a359602805d9c7dd7539cca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0aa0e12e4a0ba023033e808fb2132fdf"><td class="memItemLeft" align="right" valign="top"><a id="a0aa0e12e4a0ba023033e808fb2132fdf"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>TaskView</b></td></tr>
<tr class="separator:a0aa0e12e4a0ba023033e808fb2132fdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>handle to a node in a task dependency graph </p>
<p>A <a class="el" href="classtf_1_1Task.html" title="handle to a node in a task dependency graph ">Task</a> is handle to manipulate a node in a taskflow graph. It provides a set of methods for users to access and modify the attributes of the associated graph node without directly touching internal node data. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ac5278492a4d43a191b321eee60e7d629"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5278492a4d43a191b321eee60e7d629">&#9670;&nbsp;</a></span>composed_of()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtf_1_1Task.html">Task</a> &amp; tf::Task::composed_of </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtf_1_1Taskflow.html">Taskflow</a> &amp;&#160;</td>
          <td class="paramname"><em>taskflow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>creates a module task from a taskflow </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">taskflow</td><td>a taskflow object for the module</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>

</div>
</div>
<a id="acf9e6abcb9beb1e42e43e61761bba92b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf9e6abcb9beb1e42e43e61761bba92b">&#9670;&nbsp;</a></span>dump()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void tf::Task::dump </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>ostream</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>dumps the task through an output stream </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>output stream type with insertion operator (&lt;&lt;) defined </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ostream</td><td>an output stream target </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9057ecd0f3833b717480e914f8568f02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9057ecd0f3833b717480e914f8568f02">&#9670;&nbsp;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtf_1_1Task.html">Task</a> &amp; tf::Task::name </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>assigns a name to the task </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>a <a href="https://en.cppreference.com/w/cpp/string/basic_string">std::string</a> acceptable string</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>

</div>
</div>
<a id="a8c78c453295a553c1c016e4062da8588"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c78c453295a553c1c016e4062da8588">&#9670;&nbsp;</a></span>precede()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Ts&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtf_1_1Task.html">Task</a> &amp; tf::Task::precede </td>
          <td>(</td>
          <td class="paramtype">Ts &amp;&amp;...&#160;</td>
          <td class="paramname"><em>tasks</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>adds precedence links from this to other tasks </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Ts...</td><td>parameter pack</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tasks</td><td>one or multiple tasks</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>

</div>
</div>
<a id="a331b1b726555072e7c7d10941257f664"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a331b1b726555072e7c7d10941257f664">&#9670;&nbsp;</a></span>succeed()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename... Ts&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtf_1_1Task.html">Task</a> &amp; tf::Task::succeed </td>
          <td>(</td>
          <td class="paramtype">Ts &amp;&amp;...&#160;</td>
          <td class="paramname"><em>tasks</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>adds precedence links from other tasks to this </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Ts</td><td>parameter pack</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tasks</td><td>one or multiple tasks</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>

</div>
</div>
<a id="a2f6f4cec42d016e5eb89390f362ffe99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f6f4cec42d016e5eb89390f362ffe99">&#9670;&nbsp;</a></span>work()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename C &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtf_1_1Task.html">Task</a> &amp; tf::Task::work </td>
          <td>(</td>
          <td class="paramtype">C &amp;&amp;&#160;</td>
          <td class="paramname"><em>callable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>assigns a callable </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">C</td><td>callable type</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callable</td><td>callable to construct one of the static, dynamic, condition, and <a class="el" href="classtf_1_1cudaFlow.html" title="class for building a CUDA task dependency graph ">cudaFlow</a> tasks</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="task_8hpp_source.html">task.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>tf</b></li><li class="navelem"><a class="el" href="classtf_1_1Task.html">Task</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
